/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.mine.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 巷道信息Entity
 * @author developer
 * @version 2019-04-20
 */
public class Roadway extends DataEntity<Roadway> {
	
	private static final long serialVersionUID = 1L;
	private String roadname;		// 巷道名
	private Double depth;		// 巷道深度
	private Double length;		// 巷道长度
	private String mineId;		// 矿井id
	
	public Roadway() {
		super();
	}

	public Roadway(String id){
		super(id);
	}

	@Length(min=0, max=255, message="巷道名长度必须介于 0 和 255 之间")
	public String getRoadname() {
		return roadname;
	}

	public void setRoadname(String roadname) {
		this.roadname = roadname;
	}
	
	public Double getDepth() {
		return depth;
	}

	public void setDepth(Double depth) {
		this.depth = depth;
	}
	
	public Double getLength() {
		return length;
	}

	public void setLength(Double length) {
		this.length = length;
	}
	
	@Length(min=0, max=64, message="矿井id长度必须介于 0 和 64 之间")
	public String getMineId() {
		return mineId;
	}

	public void setMineId(String mineId) {
		this.mineId = mineId;
	}
	
}